package com.myFwk.constant;

/**
 * @Title:
 * @Description:
 * @Author: guowl
 * @version： 1.0
 * @Date:2021/8/30
 * @Copyright: Copyright(c)2021 RedaFlight.com All Rights Reserved
 */
public class Constants {
    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 成功标记
     */
    public static final Integer SUCCESS = 200;

    /**
     * 失败标记
     */
    public static final Integer FAIL = 500;


    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";

    /**
     * 验证码有效期（分钟）
     */
    public static final long CAPTCHA_EXPIRATION = 2;

    /**
     * 管理员用户角色code
     */
    public static final String ROLE_CODE = "ROLE_ADMIN";


    public static final String TOKEN_VALUE = "TOKEN_VALUE";

    public static final String MESSAGE_STREAM_OUTPUT = "MESSAGE_STREAM_OUTPUT";

    public static final String EXCHANGE_FWK = "EXCHANGE_FWK";
    public static final String DEAD_EXCHANGE_FWK = "DEAD_EXCHANGE_FWK";
    public static final String BEARER = "BEARER";



    public static final String QUEUE_FWK_0 = "QUEUE_FWK_0";
    public static final String QUEUE_FWK_1 = "QUEUE_FWK_1";
    public static final String QUEUE_FWK_2 = "QUEUE_FWK_2";
    public static final String QUEUE_FWK_3 = "QUEUE_FWK_3";
    /**
     * 延时队列
     */
    public static final String DELAY_QUEUE_FWK_0 = "DELAY_QUEUE_FWK_0";
    public static final String DELAY_QUEUE_FWK_1 = "DELAY_QUEUE_FWK_1";


    public static final String ROUTING_KEY_0 = "ROUTING_KEY_QUEUE_FWK_0";
    public static final String ROUTING_KEY_1 = "ROUTING_KEY_QUEUE_FWK_1";
    public static final String ROUTING_KEY_2 = "ROUTING_KEY_QUEUE_FWK_2";
    public static final String ROUTING_KEY_3 = "ROUTING_KEY_QUEUE_FWK_3";
    public static final String DELAY_ROUTING_KEY_0 = "DELAY_ROUTING_KEY_0";
    public static final String DELAY_ROUTING_KEY_1 = "DELAY_ROUTING_KEY_1";


}
